import { requestPort } from '@/utils/request.js';

//获取配置
export function getConfig(params) {
  return requestPort({
    url: '/api/index/getConfig',
    method: 'POST',
    params: params
  })
}

//获取我的主页
export function getMyUserHomeInfo(params) {
  return requestPort({
    url: '/api/user/getMyUserHomeInfo',
    method: 'POST',
    params: params
  });
}

//获取ta的主页
export function getOtherUserHomeInfo(params) {
  return requestPort({
    url: '/api/user/getOtherUserHomeInfo_new',
    method: 'POST',
    params: params
  });
}

// 获取用户信息
export function getUserInfo(params) {
  return requestPort({
    url: '/api/user/getUserInfo',
    method: 'POST',
    params: params
  });
}

//编辑在线状态
export function setIsOnline(params) {
  return requestPort({
    url: '/api/Jianghunew/set_isonline',
    method: 'POST',
    params: params
  });
}

//获取专家评价
export function getExpertEvaluate(params) {
  return requestPort({
    url: '/api/user/get_jianghu_evaluate',
    method: 'POST',
    params: params
  });
}


//获取老师的主页回答列表
export function getTaAnswerList(params) {
  return requestPort({
    url: '/api/user/get_jianghu_answer',
    method: 'POST',
    params: params
  });
}


//我的提问列表
export function getMyAsk(params) {
  return requestPort({
    url: '/api/user/getJianghuMyQuiz',
    method: 'POST',
    params: params
  });
}


//获取我的关注列表
export function getFollowUserList(params) {
  return requestPort({
    url: '/api/Jianghu/getFollowUserList',
    method: 'POST',
    params: params
  });
}

//关注
export function setFollow(params) {
  return requestPort({
    url: '/api/Jianghu/setFollow',
    method: 'POST',
    params: params
  });
}


//获取我的粉丝
export function getMyFollowFans(params) {
  return requestPort({
    url: '/api/user/getMyFollowFans',
    method: 'POST',
    params: params
  });
}
export function getOtherFansFocus(params) {
  return requestPort({
    url: '/api/user/getotherfansfocus',
    method: 'POST',
    params: params
  });
}
//获取取消关注的粉丝
export function cancelFollow(params) {
  return requestPort({
    url: '/api/user/cancelFollow',
    method: 'POST',
    params: params
  });
}

// 检查问题是否存在
export function checkQuiz(params) {
  return requestPort({
    url: '/api/mymessage/checkquiz',
    method: 'POST',
    params: params
  });
}

//获取优惠券列表
export function getCouponList(params) {
  return requestPort({
    url: '/api/Jianghunew/couponlist',
    method: 'POST',
    params: params
  });
}